package com.localjoycommunity.cpdj.project.system.service;

import com.localjoycommunity.cpdj.project.system.domain.SysPaperQuestion;
import com.localjoycommunity.cpdj.project.system.domain.vo.QuestionPaperVo;

import java.util.List;

/**
 * 试卷试题中间Service接口
 *
 * @author leepandar
 * @date 2020-11-01
 */
public interface ISysPaperQuestionService {
    /**
     * 查询试卷试题中间
     *
     * @param paperId 试卷试题中间ID
     * @return 试卷试题中间
     */
    public SysPaperQuestion selectSysPaperQuestionById(Long paperId);

    /**
     * 查询试卷试题中间列表
     *
     * @return 试卷试题中间集合
     */
    public List<QuestionPaperVo> selectSysPaperQuestionList(Long paperId);

    /**
     * 新增试卷试题中间
     *
     * @param sysPaperQuestion 试卷试题中间
     * @return 结果
     */
    public int insertSysPaperQuestion(SysPaperQuestion sysPaperQuestion);

    /**
     * 修改试卷试题中间
     *
     * @param sysPaperQuestion 试卷试题中间
     * @return 结果
     */
    public int updateSysPaperQuestion(SysPaperQuestion sysPaperQuestion);

    /**
     * 批量删除试卷试题中间
     *
     * @param paperIds 需要删除的试卷试题中间ID
     * @return 结果
     */
    public int deleteSysPaperQuestionByIds(Long[] paperIds);

    /**
     * 删除试卷试题中间信息
     *
     * @param paperId 试卷试题中间ID
     * @return 结果
     */
    public int deleteSysPaperQuestionById(Long paperId);
}
